A = imread('lena.tif');
B = rgb2gray(imread('c:\users\sagnik\pictures\sign1.jpg'));
B1 = padarray(B,[size(A)-size(B)],'post');
f = 4*(double(A)./4)+double(B1)./64;
F = mat2gray(f);
figure,imshow(F);
